/*
#------------------------------------------------------------------------------
#-- Program Name:	[dbo].[fnIO_FileExists]
#-- Purpose:		Determines if a file exists
#--	Last Update:	08/02/2012
#--					For a complete history - please review comments in Version
#--					Control.
#------------------------------------------------------------------------------
*/

using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;

public partial class UserDefinedFunctions
{
    [Microsoft.SqlServer.Server.SqlFunction]
    public static SqlBoolean fnIO_FileExists(string filePath)
    {
        return new SqlBoolean(System.IO.File.Exists(filePath));
    }
}
